/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Behaviors;

import Behaviors.*;
import Utils.*;
import javaclient3.*;
import javaclient3.structures.*;

/**
 *
 * @author alejo
 */
public class NxMSGoForward extends NxBehavior{

    private Position2DInterface myPos;

    public NxMSGoForward(String name, Position2DInterface myPos)
    {
        super(name);
        this.myPos = myPos;
    }

    public Vector2d Value()
    {
        PlayerPose pos = myPos.getData().getPos();//.read(Position2d.READ_MODE_NO_WAIT);

        return new Vector2d(1,pos.getPa(),Vector2d.MODE_MA);

    }
}
